package com.market.goods.dao.mongo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 *  @author: fangningfeng
 *  @Date: 2020/9/9 17:29
 *  @Description: 商品种类
 */
@ToString
@Data
@Document(collection="marketGoodsType")
public class MarketGoodsType {

    @Id
    private String marketBrandGoodsId;

    /**
     * 商品种类id
     */
    private String goodsTypeId;
    /**
     * 品牌Id
     */
    private String brandId;

    /**
     * 商品种类Name
     */
    private String goodsTypeName;

    /**
     * 商品上级关联
     */
    private String goodsSuperiorId;


    /**
     * 搜索热度
     */
    private Long searchHeat;

    private Integer version;
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date createdTime;
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date updateTime;

}
